package com.ruoyi.ap.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data

/*
  认证情况对象 ap_certified

  @author HuaQP
 * @date 2023-10-03
 */
public class Certified extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull(message = "日期不能位空")
    private Date dt;

    /** 类别 */
    @NotNull(message = "类别不能位空")
    @Excel(name = "类别",dictType = "certified_type")
    private Integer typeId;

    /** 主体名称 */
    @Excel(name = "主体名称")
    @NotBlank(message = "主体名称不能位空")
    private String subjectName;

    /** 产品名称 */
    @Excel(name = "产品名称")
    @NotBlank(message = "产品名称不能位空")
    private String productName;

    /** 种植面积(亩) */
    @Excel(name = "种植面积(亩)")
    private BigDecimal acreage;

    /** 产量(吨) */
    @Excel(name = "产量(吨)")
    private BigDecimal count;

    /** 产值(万元) */
    @Excel(name = "产值(万元)")
    private BigDecimal amount;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private Integer delFlag;
}
